package pack1021.interface3;

public class School implements Introduce {

    private String name;
    private Print print;

    public School(String name, Print print) {
        this.name = name;
        this.print = print;
    }

    @Override
    public String detail() {
        return "我是学校：" + name;
    }

    public void print(Introduce introduce) {
        String detail = introduce.detail();
        print.print(detail);
    }
}